<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>

     <body>
     <%@include file="..//template/header.jsp" %>
           
            <br><h3>Users</h3>
            
            
		    <div id="content" class="edit-content">
				<h2>User List</h2>
 
				<form:form method="post" action="update" commandName="user">
				 
				    <table>
				    <tr>
				        <td><form:label path="userName">UserName</form:label></td>
				        <td><form:input path="userName" value="${user.userName}" /></td>
				    </tr>
				    <tr>
				        <td><form:label path="password">Password</form:label></td>
				        <td><form:input path="password" value="${user.password }"/></td>
				    </tr>
				     <tr>
				        <td><form:label path="timeUpDate">Time Update</form:label></td>
				        <c:set var="now" value="<%=new java.util.Date()%>" />
				        <fmt:formatDate value="${now}"  
                                   type="date" 
                                   pattern="yyyy-MM-dd hh:mm:ss"
                                   var="theFormattedDate" />
				        <td><form:input readonly="true"  zise = "30" path="timeUpDate" value="${theFormattedDate}"/></td>
				    </tr>
				    <tr>
				        <td colspan="2">
				            <input type="submit" value="Commit"/>
				        </td>
				    </tr>
				</table> 
				</form:form>
		    </div>
     </div>
 
   </body>
</html>